package javacode.chapter04;

public class Example4_12 {
    public static void main(String[] args) {
        // 求A~Z所有的大写字母的Unicode值得和
        char ch = 'A';
        int sum = 0;
        do {
            sum = sum + ch;
            ch += 1;
        } while (ch <= 'Z');

        System.out.println("A~Z所有的大写字母的Unicode值得和是：" + sum);
    }
}
